<?php
    header('Content-type:text/json');
    require "../connection.php";
    $id = $_POST['id'];
    $sql = "select * from cart,goods where user_id = '$id' and goods.id = cart.goods_id and cart.status=1";
    $result = $conn->doSql($sql);
    echo json_encode($result);
?>